﻿namespace DoNet.Wechat.MP.Menu.Entitys
{
    /// <summary>
    /// GetMenu返回的Json结果
    /// </summary>
    public class GetSelfMenuResult : JsonResult
    {
        /// <summary>
        /// 菜单是否开启，0代表未开启，1代表开启
        /// </summary>
        public int is_menu_open { get; set; }

        //TODO：这里如果有更加复杂的情况，可以换成ButtonGroupBase类型，并提供泛型
        public ButtonGroupBase selfmenu_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="buttonGroupBase"></param>
        public GetSelfMenuResult(ButtonGroupBase buttonGroupBase)
        {
            selfmenu_info = buttonGroupBase;
        }
    }
}
